﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Item.Master" AutoEventWireup="true"
    CodeBehind="ButtonItem.aspx.cs" Inherits="SGDemo.Permission.ButtonItem" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHeader" runat="server">
    <script src="ButtonItem.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpBody" runat="server">
   <div class="ui-menu">
        <uc:Menu ID="menu1" runat="server" DataFile="../Views/Permission/Menu/ButtonItem.xml"
            PageCode="ButtonItem" />
    </div>
    <div class="ui-wrapper">
        <div class="ui-hidden">
            <dx:ASPxLabel ID="lblKeyid" ClientInstanceName="lblKeyid" runat="server" />
        </div>
        <ul class="ui-list">
            <li>
                <dx:ASPxLabel ID="lblButtonName" runat="server" Text="按钮名称：" AssociatedControlID="txtButtonName" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtButtonName" ClientInstanceName="txtButtonName" runat="server"
                    Width="120px">
                    <ValidationSettings>
                        <RequiredField IsRequired="True" ErrorText="按钮名称必须填写" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblButtonCode" runat="server" Text="按钮编码：" AssociatedControlID="txtButtonCode" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtButtonCode" ClientInstanceName="txtButtonCode" runat="server"
                    Width="120px">
                    <ValidationSettings>
                        <RequiredField IsRequired="True" ErrorText="按钮编码必须填写" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblButtonNameEn" runat="server" Text="按钮英文名称：" AssociatedControlID="txtButtonNameEn" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtButtonNameEn" ClientInstanceName="txtButtonNameEn" runat="server"
                    Width="120px">
                </dx:ASPxTextBox>
            </li>
        </ul>
        <ul class="ui-list">
            <li>
                <dx:ASPxLabel ID="lblModule" runat="server" Text="所属模块：" AssociatedControlID="cbModule" />
            </li>
            <li>
                <dx:ASPxComboBox ID="cbModule" ClientInstanceName="cbModule" runat="server" Width="120">
                    <ClientSideEvents SelectedIndexChanged="doSelectItem" />
                </dx:ASPxComboBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblPage" runat="server" Text="所属页面：" AssociatedControlID="cbPage" />
            </li>
            <li>
                <dx:ASPxComboBox ID="cbPage" ClientInstanceName="cbPage" runat="server" Width="120"
                    OnCallback="cbPage_Callback">
                </dx:ASPxComboBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblOrder" runat="server" Text="排序：" AssociatedControlID="txtOrder" />
            </li>
            <li>
                <dx:ASPxSpinEdit ID="seOrder" ClientInstanceName="seOrder" runat="server" Number="0"
                    MaxLength="11" Width="120">
                    <SpinButtons ShowIncrementButtons="False" ShowLargeIncrementButtons="False" />
                </dx:ASPxSpinEdit>
            </li>
        </ul>
        <ul class="ui-list ">
            <li>
                <dx:ASPxLabel ID="lblOnClick" runat="server" Text="点击事件：" AssociatedControlID="txtOnClick" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtOnClick" ClientInstanceName="txtOnClick" runat="server" Width="340px">
                </dx:ASPxTextBox>
            </li>
            <li>
                <dx:ASPxLabel ID="lblButtonType" runat="server" Text="按钮类型：" AssociatedControlID="rblButtonType" />
            </li>
            <li>
                <dx:ASPxRadioButtonList ID="rblButtonType" ClientInstanceName="rblButtonType" runat="server"
                    RepeatDirection="Horizontal" RepeatLayout="Table" Width="120">
                    <Items>
                        <dx:ListEditItem Text="普通" Value="0" />
                        <dx:ListEditItem Text="自定义" Value="1" />
                    </Items>
                    <Paddings Padding="0" />
                </dx:ASPxRadioButtonList>
            </li>
        </ul>
        <ul class="ui-list ">
            <li>
                <dx:ASPxLabel ID="lblImageUrl" runat="server" Text="图片地址：" AssociatedControlID="txtImageUrl" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtImageUrl" ClientInstanceName="txtImageUrl" runat="server"
                    Width="340px">
                </dx:ASPxTextBox>
            </li>
        </ul>
        <ul class="ui-list ">
            <li>
                <dx:ASPxLabel ID="lblRemark" runat="server" Text="描述：" AssociatedControlID="txtRemark" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtRemark" ClientInstanceName="txtRemark" runat="server" Width="340px">
                </dx:ASPxTextBox>
            </li>
        </ul>
          <ul class="ui-list ">
            <li>
                <dx:ASPxLabel ID="lblServerSideMethod" runat="server" Text="服务端方法：" AssociatedControlID="txtServerSideMethod" />
            </li>
            <li>
                <dx:ASPxTextBox ID="txtServerSideMethod" ClientInstanceName="txtServerSideMethod" runat="server" Width="340px">
                </dx:ASPxTextBox>
            </li>
        </ul>
        <div class="ui-validation">
            <dx:ASPxValidationSummary ID="vsSummary" runat="server" RenderMode="BulletedList"
                Width="100%" ClientInstanceName="validationSummary" ShowErrorsInEditors="false"
                ShowErrorAsLink="true">
            </dx:ASPxValidationSummary>
        </div>
        <ul class="sl-floatcenter clearfix ui-btn-bottom ui-btn-saveforadd">
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnSaveToAdd" ClientInstanceName="btnSaveToAdd" runat="server"
                    Text="保 存" AutoPostBack="false">
                    <ClientSideEvents Click="doSaveForAdd" />
                </dx:ASPxButton>
            </li>
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnSaveAndContinueToAdd" ClientInstanceName="btnSaveAndContinueToAdd"
                    runat="server" Text="保存完继续新增" AutoPostBack="false">
                    <ClientSideEvents Click="doSaveAndContinueToAdd" />
                </dx:ASPxButton>
            </li>
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnResetForAdd" ClientInstanceName="btnResetForAdd" runat="server"
                    Text="重 置" AutoPostBack="false">
                    <ClientSideEvents Click="doResetForAdd" />
                </dx:ASPxButton>
            </li>
        </ul>
        <ul class="sl-floatcenter clearfix ui-btn-bottom ui-btn-saveforedit">
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnSaveToEdit" ClientInstanceName="btnSaveToEdit" runat="server"
                    Text="保 存" AutoPostBack="false">
                    <ClientSideEvents Click="doSaveForEdit" />
                </dx:ASPxButton>
            </li>
            <li class="sl-floatcenter-item">
                <dx:ASPxButton ID="btnCancelForEdit" ClientInstanceName="btnCancelForEdit" runat="server"
                    Text="取 消" AutoPostBack="false">
                    <ClientSideEvents Click="doCancelForEdit" />
                </dx:ASPxButton>
            </li>
        </ul>
    </div>
    <div class="ui-state">
        <ul>
            <li>创建人： </li>
            <li>
                <dx:ASPxLabel ID="lblCreateName" ClientInstanceName="lblCreateName" runat="server" />
            </li>
            <li class="ui-state-seperator">| </li>
            <li>创建日期： </li>
            <li>
                <dx:ASPxLabel ID="lblCreateDate" ClientInstanceName="lblCreateDate" runat="server" />
            </li>
            <li class="ui-state-seperator">| </li>
            <li>编辑人： </li>
            <li>
                <dx:ASPxLabel ID="lblModifyName" ClientInstanceName="lblModifyName" runat="server" />
            </li>
            <li class="ui-state-seperator">| </li>
            <li>编辑日期： </li>
            <li>
                <dx:ASPxLabel ID="lblModifyDate" ClientInstanceName="lblModifyDate" runat="server" />
            </li>
        </ul>
    </div>
</asp:Content>
